package com.example.xbrother.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author hcj
 * @since 2022-12-26
 */
@Data
@TableName("t_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 编号
     */
    private String no;

    /**
     * 折扣系数
     */
    private BigDecimal discount = BigDecimal.ONE;

    /**
     * 是否删除
     */
    @TableLogic(value = "0")
    private Boolean delFlag;
}
